package com.jht.mymvvm.db.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.jht.mymvvm.db.entity.Book

@Dao
interface BookDao {

    @Insert
    fun insertBook(book:Book):Long

    @Query("select * from Book")
    fun loadAllBooks():List<Book>




}